package com.bjpowernode.crm.workbench.service.impl;

import com.bjpowernode.crm.workbench.domain.TranHistory;
import com.bjpowernode.crm.workbench.mapper.TranHistoryMapper;
import com.bjpowernode.crm.workbench.service.TranHistoryService;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class TranHistoryServiceImpl implements TranHistoryService {

    /**
     * 访问交易历史记录数据
     */
    private TranHistoryMapper tranHistoryMapper;

    @Override
    public void addTranHistory(TranHistory tranHistory) {
        this.tranHistoryMapper.insertTranHistory(tranHistory);
    }

    @Override
    public List<TranHistory> queryTranHistoriesByTranId(String tranId) {
        return this.tranHistoryMapper.selectTranHistoriesByTranId(tranId);
    }

}
